/*
 * @Date: 2024-01-26 11:56:24
 * @LastEditTime: 2024-01-26 11:56:30
 * @LastEditors: Andwxa
 * Github:https://github.com/Andwxa
 * @Description: 
 */
package guyubao.com.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import org.springframework.stereotype.Component;

@Schema(description = "发送的响应码")
public class ApifoxModel {
    /**
     * 响应码
     */
    private long code;
    /**
     * 响应数据
     */
    private String data;
    /**
     * 响应说明
     */
    private String msg;

    public ApifoxModel(long code, String data, String msg) {
        this.code = code;
        this.data = data;
        this.msg = msg;
    }

    public long getCode() {
        return code;
    }

    public void setCode(long value) {
        this.code = value;
    }

    public String getData() {
        return data;
    }

    public void setData(String value) {
        this.data = value;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String value) {
        this.msg = value;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + (int) (code ^ (code >>> 32));
        result = prime * result + ((data == null) ? 0 : data.hashCode());
        result = prime * result + ((msg == null) ? 0 : msg.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        ApifoxModel other = (ApifoxModel) obj;
        if (code != other.code)
            return false;
        if (data == null) {
            if (other.data != null)
                return false;
        } else if (!data.equals(other.data))
            return false;
        if (msg == null) {
            if (other.msg != null)
                return false;
        } else if (!msg.equals(other.msg))
            return false;
        return true;
    }

    @Override
    public String toString() {
        return "ApifoxModel [code=" + code + ", data=" + data + ", msg=" + msg + "]";
    }

}
